GetAppleEventTarget Function

Used to bring up a dialog box that allows the user to choose the target application on his computer or a networked computer. The dialog box shows computers on the left and applications on the right.

Syntax

result = GetAppleEventTarget( Prompt, ListLabel )


Parameters

Prompt

String

Prompt text that will appear as the header of the dialog box.

ListLabel

String

Label for the list of applications in the dialog box.


The applications list is labelled with the parameter ListLabel.


Notes

This function works under Mac OS "classic" only. In particular, it does not work under Carbon or Mac OS X.


Example

The following example displays the Choose an App dialog box.

Dim AE as AppleEventTarget
AE=GetAppleEventTarget("Choose An App","Applications")